import random
x = ""
str0 = input("输入任意键开始游戏：")
num0 = random.randint(1,12)
print(f"恭喜你打到第{num0}个灯")

deng = random.choice("10")
print(deng,end="")
if deng == 1:
    x = 1

deng1 = random.choice("10")
print(deng1,end="")
if deng1 == 1:
    x = 2


deng2 = random.choice("10")
print(deng2,end="")
if deng2 == 1:
    x = 3

deng3 = random.choice("10")
print(deng3,end="")
if deng3 == 1:
    x = 4

deng4 = random.choice("10")
print(deng4,end="")
if deng4 == 1:
    x = 5

deng5 = random.choice("10")
print(deng5,end="")
if deng5 == 1:
    x = 6

deng6 = random.choice("10")
print(deng6,end="")
if deng6 == 1:
    x = 7

deng7 = random.choice("10")
print(deng7,end="")
if deng7 == 1:
    x = 8

deng8 = random.choice("10")
print(deng8,end="")
if deng8 == 1:
    x = 9

deng9 = random.choice("10")
print(deng9,end="")
if deng9 == 1:
    x = 10

deng10 = random.choice("10")
print(deng10,end="")
if deng10 == 1:
    x = 11

deng11 = random.choice("10")
print(deng11,end="")
if deng11 == 1:
    x = 12
print("")
if num0 == x:
    print("恭喜你，打到的灯是亮的，你赢了")
else:
    print("真可惜，没有打到亮的灯，你输了")

